<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="utf-8"%>
<%@ page import="com.csis.system.common.WebUtil" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>服装信息</title>
<jsp:include page="/common.jsp" />
<script type="text/javascript">
var options={
		create:{
			url:'',
			title:''
		},

		view:{
			url:'${pageContext.request.contextPath}/system/prod/toView.htm',
			title:'服装详细',
			width:560,
			height:420,
			overflow:'auto',
			scrolling:'yes'
		},

		modify:{
			url:'',
			title:''
		},
			
		remove:{
			url:''
		}
	};
</script>
</head>

<body>
	<table cellpadding="0" cellspacing="0" width="100%" height="100%">
		<tbody>
			<tr>
				<td>
					<div class="toolbar" style="background-color: #e0e0e0;">
						<a plain="true" href="javascript:void(0);"
							class="easyui-linkbutton" iconCls="icon-search" onclick="toDo(options,'V');">查看</a>
					</div>
				</td>
			</tr>
			
			<tr>
				<td height="100%" valign="top" width="100%">
					<table id="lister" name="lister" style="width:100%;height:100%"></table>
					<div id="pager"></div>
				</td>
			</tr>
		</tbody>
	</table>
	<div id='win' class='easyui-window' title='New Window' style='width:400px;height:300px;padding:5px;' closed='true'>
	</div>
	<script>
     $(document).ready(function(){
    	 $("#lister")
			.jqGrid(
					{
						url : "${pageContext.request.contextPath }/system/prod/listBy.htm",
						datatype : "json",
						colNames : ['编号','类别编号','类别','服装名称','颜色','尺寸','入库价格','分销价格','零售价格','货币单位','生产厂家','更新日期'],
						colModel : [ 
									{name : 'product_id',index : 'product_id',searchtype:"number"}, 
									{name : 'category_id',index : 'category_id',hidden:true},
									{name : 'category_name',index : 'category_name',search:true},
									{name : 'product_name',index : 'product_name'},
									{name : 'product_color',index : 'product_color'},
									{name : 'product_size',index : 'product_size'},
									{name : 'product_price1',index : 'product_price1',searchtype:"number"},
									{name : 'product_price2',index : 'product_price2',searchtype:"number"},
									{name : 'product_price3',index : 'product_price3',searchtype:"number"},
									{name : 'product_price_unit',index : 'product_price_unit'},
									{name : 'product_factory',index : 'product_factory'},
									{name : 'product_update',index : 'product_update'}
									],
						rowNum : 10,
						shrinkToFit: true,
						rowList : [ 10, 20, 30 ],
						pager : '#pager',
						sortname : 'product_id',
						viewrecords : true,
						sortorder : "desc",
						mtype: "POST",
						multiselect: true,
						width:'100%'
					});
		$("#lister").jqGrid('navGrid','#pager', {edit : false,add : false,del : false});
      });
	</script>
</body>
</html>